#ifndef GEOMETRYPOOL_H
#define GEOMETRYPOOL_H

#include <scene.h>
#include <QMap>

class GeometryPool
{
private:
  QMap<QString, QMap<unsigned, Geometry*> > _geometries;

  static GeometryPool*  static_instance;
  GeometryPool();
public:
  static GeometryPool* Get();

  Geometry* GetGeometry (QString name, unsigned idx);
  void Set (QString name, unsigned idx, Geometry* geometry);

};

#endif // GEOMETRYPOOL_H
